package cn.yeziji.forum.entity;

import cn.org.atool.fluent.mybatis.annotation.FluentMybatis;
import cn.org.atool.fluent.mybatis.annotation.TableField;
import cn.org.atool.fluent.mybatis.annotation.TableId;
import cn.org.atool.fluent.mybatis.base.RichEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * ForumFileEntity: 数据映射实体定义
 *
 * @author Powered By Fluent Mybatis
 */
@SuppressWarnings({"rawtypes", "unchecked"})
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@FluentMybatis(table = "forum_file", schema = "yzj_forum")
public class ForumFileEntity extends RichEntity {
  private static final long serialVersionUID = 1L;

  /** */
  @TableId("id")
  private Integer id;

  /** 创建时间 */
  @TableField("createTime")
  private Date createTime;

  /** 是否删除 */
  @TableField("delete")
  private Boolean delete;

  /** 作用域 */
  @TableField("scope")
  private String scope;

  /** 更新时间 */
  @TableField("updateTime")
  private Date updateTime;

  /** 访问地址 */
  @TableField("target")
  private String target;

  /** 文件来源 */
  @TableField("source")
  private String source;
  /** 文件大小 */
  @TableField("size")
  private Long size;
  /** 文件介绍 */
  @TableField("desc")
  private String desc;
  /** 文件省略图 */
  @TableField("image")
  private String image;

  @Override
  public final Class entityClass() {
    return ForumFileEntity.class;
  }
}
